# Maintainer: Antonio Rojas <arojas@archlinux,org>

pkgname=kseexpr
pkgver=4.0.3.0
pkgrel=1
pkgdesc='An embeddable expression evaluation engine (Krita fork)'
arch=(x86_64)
url='https://krita.org'
license=(Apache)
depends=(qt5-base)
makedepends=(extra-cmake-modules qt5-tools)
replaces=(seexpr-krita)
source=(https://download.kde.org/stable/kseexpr/${pkgver%.*}/$pkgname-$pkgver.tar.gz)
sha256sums=('e07b5ec4c874fbeeee3cd2490a0c8e4360230e3492c7f8e3b02dd63dbfd3f195')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_DEMOS=OFF \
    -DBUILD_TESTS=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
